import {Config} from 'config.js';

class Base{
  construct(){
    
  }

  getRequest(parms){

    if(!parms.method){
      parms.method="GET";
    }

    wx.request({
      url: Config.baseUrl+parms['url'],
      data: parms.data,
      method: parms.method,
      success: function (res) {
        parms.callBack&&parms.callBack(res);
      }

      

    })
  }
}

export {Base};